﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001227 RID: 4647
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class StartRaidCsReq : IMessage<StartRaidCsReq>, IMessage, IEquatable<StartRaidCsReq>, IDeepCloneable<StartRaidCsReq>, IBufferMessage
	{
		// Token: 0x17003AE8 RID: 15080
		// (get) Token: 0x0600D05E RID: 53342 RVA: 0x002315EB File Offset: 0x0022F7EB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<StartRaidCsReq> Parser
		{
			get
			{
				return StartRaidCsReq._parser;
			}
		}

		// Token: 0x17003AE9 RID: 15081
		// (get) Token: 0x0600D05F RID: 53343 RVA: 0x002315F2 File Offset: 0x0022F7F2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return StartRaidCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003AEA RID: 15082
		// (get) Token: 0x0600D060 RID: 53344 RVA: 0x00231604 File Offset: 0x0022F804
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return StartRaidCsReq.Descriptor;
			}
		}

		// Token: 0x0600D061 RID: 53345 RVA: 0x0023160B File Offset: 0x0022F80B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartRaidCsReq()
		{
		}

		// Token: 0x0600D062 RID: 53346 RVA: 0x00231620 File Offset: 0x0022F820
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartRaidCsReq(StartRaidCsReq other) : this()
		{
			this.propEntityId_ = other.propEntityId_;
			this.worldLevel_ = other.worldLevel_;
			this.avatarList_ = other.avatarList_.Clone();
			this.raidId_ = other.raidId_;
			this.isSaveData_ = other.isSaveData_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D063 RID: 53347 RVA: 0x00231685 File Offset: 0x0022F885
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartRaidCsReq Clone()
		{
			return new StartRaidCsReq(this);
		}

		// Token: 0x17003AEB RID: 15083
		// (get) Token: 0x0600D064 RID: 53348 RVA: 0x0023168D File Offset: 0x0022F88D
		// (set) Token: 0x0600D065 RID: 53349 RVA: 0x00231695 File Offset: 0x0022F895
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint PropEntityId
		{
			get
			{
				return this.propEntityId_;
			}
			set
			{
				this.propEntityId_ = value;
			}
		}

		// Token: 0x17003AEC RID: 15084
		// (get) Token: 0x0600D066 RID: 53350 RVA: 0x0023169E File Offset: 0x0022F89E
		// (set) Token: 0x0600D067 RID: 53351 RVA: 0x002316A6 File Offset: 0x0022F8A6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint WorldLevel
		{
			get
			{
				return this.worldLevel_;
			}
			set
			{
				this.worldLevel_ = value;
			}
		}

		// Token: 0x17003AED RID: 15085
		// (get) Token: 0x0600D068 RID: 53352 RVA: 0x002316AF File Offset: 0x0022F8AF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> AvatarList
		{
			get
			{
				return this.avatarList_;
			}
		}

		// Token: 0x17003AEE RID: 15086
		// (get) Token: 0x0600D069 RID: 53353 RVA: 0x002316B7 File Offset: 0x0022F8B7
		// (set) Token: 0x0600D06A RID: 53354 RVA: 0x002316BF File Offset: 0x0022F8BF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RaidId
		{
			get
			{
				return this.raidId_;
			}
			set
			{
				this.raidId_ = value;
			}
		}

		// Token: 0x17003AEF RID: 15087
		// (get) Token: 0x0600D06B RID: 53355 RVA: 0x002316C8 File Offset: 0x0022F8C8
		// (set) Token: 0x0600D06C RID: 53356 RVA: 0x002316D0 File Offset: 0x0022F8D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint IsSaveData
		{
			get
			{
				return this.isSaveData_;
			}
			set
			{
				this.isSaveData_ = value;
			}
		}

		// Token: 0x0600D06D RID: 53357 RVA: 0x002316D9 File Offset: 0x0022F8D9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as StartRaidCsReq);
		}

		// Token: 0x0600D06E RID: 53358 RVA: 0x002316E8 File Offset: 0x0022F8E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(StartRaidCsReq other)
		{
			return other != null && (other == this || (this.PropEntityId == other.PropEntityId && this.WorldLevel == other.WorldLevel && this.avatarList_.Equals(other.avatarList_) && this.RaidId == other.RaidId && this.IsSaveData == other.IsSaveData && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D06F RID: 53359 RVA: 0x00231768 File Offset: 0x0022F968
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.PropEntityId != 0U)
			{
				num ^= this.PropEntityId.GetHashCode();
			}
			if (this.WorldLevel != 0U)
			{
				num ^= this.WorldLevel.GetHashCode();
			}
			num ^= this.avatarList_.GetHashCode();
			if (this.RaidId != 0U)
			{
				num ^= this.RaidId.GetHashCode();
			}
			if (this.IsSaveData != 0U)
			{
				num ^= this.IsSaveData.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D070 RID: 53360 RVA: 0x00231800 File Offset: 0x0022FA00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D071 RID: 53361 RVA: 0x00231808 File Offset: 0x0022FA08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D072 RID: 53362 RVA: 0x00231814 File Offset: 0x0022FA14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.IsSaveData != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.IsSaveData);
			}
			if (this.PropEntityId != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.PropEntityId);
			}
			if (this.WorldLevel != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.WorldLevel);
			}
			if (this.RaidId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.RaidId);
			}
			this.avatarList_.WriteTo(ref output, StartRaidCsReq._repeated_avatarList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D073 RID: 53363 RVA: 0x002318B8 File Offset: 0x0022FAB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.PropEntityId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.PropEntityId);
			}
			if (this.WorldLevel != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.WorldLevel);
			}
			num += this.avatarList_.CalculateSize(StartRaidCsReq._repeated_avatarList_codec);
			if (this.RaidId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RaidId);
			}
			if (this.IsSaveData != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.IsSaveData);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D074 RID: 53364 RVA: 0x00231954 File Offset: 0x0022FB54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(StartRaidCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.PropEntityId != 0U)
			{
				this.PropEntityId = other.PropEntityId;
			}
			if (other.WorldLevel != 0U)
			{
				this.WorldLevel = other.WorldLevel;
			}
			this.avatarList_.Add(other.avatarList_);
			if (other.RaidId != 0U)
			{
				this.RaidId = other.RaidId;
			}
			if (other.IsSaveData != 0U)
			{
				this.IsSaveData = other.IsSaveData;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D075 RID: 53365 RVA: 0x002319DD File Offset: 0x0022FBDD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D076 RID: 53366 RVA: 0x002319E8 File Offset: 0x0022FBE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 104U)
				{
					if (num == 24U)
					{
						this.IsSaveData = input.ReadUInt32();
						continue;
					}
					if (num == 48U)
					{
						this.PropEntityId = input.ReadUInt32();
						continue;
					}
					if (num == 104U)
					{
						this.WorldLevel = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 112U)
					{
						this.RaidId = input.ReadUInt32();
						continue;
					}
					if (num == 120U || num == 122U)
					{
						this.avatarList_.AddEntriesFrom(ref input, StartRaidCsReq._repeated_avatarList_codec);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04005386 RID: 21382
		private static readonly MessageParser<StartRaidCsReq> _parser = new MessageParser<StartRaidCsReq>(() => new StartRaidCsReq());

		// Token: 0x04005387 RID: 21383
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005388 RID: 21384
		public const int PropEntityIdFieldNumber = 6;

		// Token: 0x04005389 RID: 21385
		private uint propEntityId_;

		// Token: 0x0400538A RID: 21386
		public const int WorldLevelFieldNumber = 13;

		// Token: 0x0400538B RID: 21387
		private uint worldLevel_;

		// Token: 0x0400538C RID: 21388
		public const int AvatarListFieldNumber = 15;

		// Token: 0x0400538D RID: 21389
		private static readonly FieldCodec<uint> _repeated_avatarList_codec = FieldCodec.ForUInt32(122U);

		// Token: 0x0400538E RID: 21390
		private readonly RepeatedField<uint> avatarList_ = new RepeatedField<uint>();

		// Token: 0x0400538F RID: 21391
		public const int RaidIdFieldNumber = 14;

		// Token: 0x04005390 RID: 21392
		private uint raidId_;

		// Token: 0x04005391 RID: 21393
		public const int IsSaveDataFieldNumber = 3;

		// Token: 0x04005392 RID: 21394
		private uint isSaveData_;
	}
}
